< previous page page_785 next page >

Page 785
tip.gif
One method of ensuring that your installation includes all the right parts is to try it on a test machine that contains nothing but the operating system. This situation can be tricky because each test of the installation changes the test machine. I suggest getting software that allows you to restore a PC from an image file so that you can test with a variety of software configurations.

A Closer Look at the Setup Process
You've just seen the process by which you create a set of setup files, also known as a package. It is probably a safe bet to assume that most computer users are already familiar with the concept of installing, or setting up, an application. Who hasn't spent 30 minutes watching the bar graph crawl by during a slow setup routine? From a user's viewpoint, the setup program performs a simple function. However, for troubleshooting purposes, the developer needs to realize that a lot more is going on than just copying files to the destination PC. In the following sections, you will look at the files created by the Package and Deployment Wizard and at what happens during the setup process.
Installation Files
The steps you used to create a Standard EXE setup package in the previous sections create two new folders on your hard drive:
Package folder. Contains the compressed installation files in CAB format, the Setup Executable, the dependency file, and a setup control file, SETUP.LST. You copy (or deploy) the contents of the Package folder to your distribution location.
Support folder. Contains the decompressed installation files. You do not need to distribute this folder with your application.
note.gif If you are creating an ActiveX component setup, additional files are created. You learn about ActiveX in later sections. square.gif

One of the files created by the Setup Wizard, SETUP.LST, is the controlling file for the entire setup process. You can view SETUP.LST in a text editor, as shown in Figure B.11.
The SETUP.LST File
Don't let the cryptic lines of text in the SETUP.LST file intimidate you; the structure of the file is actually fairly straightforward. It contains all the information necessary to control the installation of a Standard EXE project. Take a brief step-by-step look now at how SETUP.LST is used:
1. When SETUP.EXE is executed by a user, the files in the [BootStrap Files] section of SETUP.LST are copied, decompressed, and registered on the destination machine. This process may require rebooting if certain critical files are out of date. Because the VB runtime files may not be present, SETUP.EXE must be written in a language capable of running without them.

 
< previous page page_785 next page >